// Copyright (c) RealCoolEngineer. 2025. All rights reserved.
// Author: ClingYang
// https://clingyang.github.io/
// Date: 2025-07-14
// Version: 1.0
#ifndef  __BSP_GPIO_H__
#define  __BSP_GPIO_H__

#ifdef __cplusplus
extern "C" {
#endif

/*********************************************************************
* INCLUDES
*/
#include "main.h"

/*********************************************************************
* DEFINITIONS  
*/
#define POWER_OFF   0
#define POWER_ON    1

#define KEY1_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOA_CLK_ENABLE()
#define KEY1_PIN      GPIO_PIN_4
#define KEY1_PORT     GPIOA

#define KEY2_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOB_CLK_ENABLE()
#define KEY2_PIN      GPIO_PIN_9
#define KEY2_PORT     GPIOB



/*********************************************************************
* API FUNCTIONS
*/

void bsp_gpio_init(void);

#ifdef __cplusplus
}
#endif

#endif  /*__BSP_GPIO_H__*/
